###############################################################################
# UPnP Makefile
#
# Copyright 2003 Nintendo.  All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law.  They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Log: makefile,v $
# Revision 1.1.1.1  2005/09/09 03:28:58  cnguyen
# Released by Nintendo
#
#   
#   6     03/09/01 15:13 Ooshima
#   Merged UPnP NAT Traversal
#   
#   4     5/13/03 21:55 Shiki
#   Merged UPnP HTTP service.
#
#   3     03/05/13 17:15 Ooshima
#   Added UPnPUri.c
#
#   2     5/06/03 15:05 Shiki
#   Added UPnPUuid.c
#
#   1     4/18/03 22:36 Shiki
#   Initial check-in.
# $NoKeywords: $
#
###############################################################################

# All modules have "setup" and "build" as targets.  System libraries
# and demo programs also have an "install" target that copies the compiled
# binaries to the binary tree (/dolphin/$(ARCH_TARGET)).
all: 	setup build install

# commondefs must be included near the top so that all common variables
# will be defined before their use.
include $(BUILDTOOLS_ROOT)/commondefs

# MODULENAME should be set to the name of this subdirectory
MODULENAME	= upnp

# This indicates to commondefs/modulerules as to where this directory is
# The selectable paths are restricted to limit the number of subtrees
# that are added to the Dolphin tree.
LIB		= TRUE


###############################################################################
# Library building
# LIBNAME specifies the name of the library.  No suffix is required, as
# that will depend on whether this is a DEBUG build or not.
# The final name of the library will be $(LIBNAME)$(LIBSUFFIX)
LIBNAME		= upnp

# CLIBSRCS specifies all C files that are built and linked into the library.
# ASMLIBSRCS are all assembly files that will be built and linked into the lib.
CLIBSRCS	= UPnP.c UPnPHttp.c UPnPSsdp.c UPnPUuid.c UPnPUri.c
CLIBSRCS       += UPnPHttpd.c UPnPHttpdResponse.c   # HTTP server
CLIBSRCS       += UPnPXmlParser.c UPnPXmlNode.c UPnPDescription.c \
                  UPnPIGDService.c UPnPHttpClient.c UPnPSoap.c UPnPHttpGet.c \
                  UPnPIGDAction.c # NAT Traversal

# modulerules contains the rules that will use the above variables
# and dependencies below to construct the library and binaries specified.
include $(BUILDTOOLS_ROOT)/modulerules
